<?php

require_once("DB.php");

$db_host     = 'localhost';
$db_database = 'moddwebc_modd';
$db_username = 'moddwebc';
$db_password = 'mah1MAH1'; 

function connect_to_db() {
	
	global $db_host;
	global $db_database;
	global $db_username;
	global $db_password;
	
	$connection = DB::connect("mysql://$db_username:$db_password@$db_host/$db_database");
	
	if (DB::isError($connection)) {
		return false;
	}
	else {
		return $connection;
	}
}

//connect_to_db();

?>